<div class="pageContent">
	
	<form method="post" action="/index.php?act=transportprice&st=transportprice_edit&tmp_id={$tmp_id}" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="id" value="{$transportprice.transport_price_id}"/>
		<div class="pageFormContent" layoutH="58">

			
			<p>
				<label>省：</label>
				<select class="required combox" ref="city" refUrl="/index.php?act=area&st=get_city_list&v={value}">
					{foreach item=item from=$province}
					<option value="{$item.province}" {if $item.province eq $addr.province}selected{/if}>{$item.province}</option>
					{/foreach}
				</select>
			</p>
			{if $tmp_info.tmp_type eq 1}
			<p>
				<label>市：</label>
				<select class="required combox" id="city" ref="area" refUrl="/index.php?act=area&st=get_area_list&v={value}">
					{foreach item=item from=$city}
					<option value="{$item.area_id}" {if $item.city eq $addr.city}selected{/if}>{$item.city}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>区：</label>
				<select class="required combox" errormsg="请选择区县" id="area" ref="street" refUrl="/index.php?act=area&st=get_street_list&v={value}">
					{foreach item=item from=$area}
					<option value="{$item.area_motor_id}" {if $item.area eq $addr.area}selected{/if}>{$item.area}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>街道：</label>
				<select name="area_id" class="required combox" errormsg="请选择街道" id="street">
					{foreach item=item from=$street}
					<option value="{$item.area_motor_id}" {if $item.street eq $addr.street}selected{/if}>{$item.street}</option>
					{/foreach}
				</select>
			</p>
			{elseif $tmp_info.tmp_type eq 2}
			<p>
				<label>市：</label>
				<select class="required combox" id="city" ref="area" refUrl="/index.php?act=area&st=get_area_station&v={value}">
					{foreach item=item from=$city}
					<option value="{$item.area_id}" {if $item.city eq $addr.city}selected{/if}>{$item.city}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>地区站：</label>
				<select name="area_id" class="required combox" errormsg="请选择地区站" id="area" ref="street" refUrl="/index.php?act=area&st=get_street_list&v={value}">
					{foreach item=item from=$area}
					<option value="{$item.area_train_id}" {if $item.area_station eq $addr.area_station}selected{/if}>{$item.area_station}</option>
					{/foreach}
				</select>
			</p>
			{elseif $tmp_info.tmp_type eq 3}
			<p>
				<label>市：</label>
				<select class="required combox" id="city" ref="area" refUrl="/index.php?act=area&st=get_port_list&v={value}">
					{foreach item=item from=$city}
					<option value="{$item.area_id}" {if $item.city eq $addr.city}selected{/if}>{$item.city}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>港口：</label>
				<select class="required combox" errormsg="请选择港口" id="area" ref="street" refUrl="/index.php?act=area&st=get_port_dest&v={value}">
					{foreach item=item from=$area}
					<option value="{$item.area_ship_id}" {if $item.port eq $addr.port}selected{/if}>{$item.port}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>过驳目的港：</label>
				<select name="area_id" class="required combox" errormsg="请选择过驳目的港" id="street">
					{foreach item=item from=$street}
					<option value="{$item.area_ship_id}" {if $item.port_dest eq $addr.port_dest}selected{/if}>{$item.port_dest}</option>
					{/foreach}
				</select>
			</p>
			{elseif $tmp_info.tmp_type eq 4}
			<p>
				<label>市：</label>
				<select class="required combox" id="city" ref="area" refUrl="/index.php?act=area&st=get_area_wharf&v={value}">
					{foreach item=item from=$city}
					<option value="{$item.area_id}" {if $item.city eq $addr.city}selected{/if}>{$item.city}</option>
					{/foreach}
				</select>
			</p>
			<p>
				<label>地区码头：</label>
				<select name="area_id" class="required combox" errormsg="请选择地区码头" id="area" ref="street" refUrl="/index.php?act=area&st=get_street_list&v={value}">
					{foreach item=item from=$area}
					<option value="{$item.area_smotor_id}" {if $item.area_wharf eq $addr.area_wharf}selected{/if}>{$item.area_wharf}</option>
					{/foreach}
				</select>
			</p>
			{/if}
			<div class="divider"></div>
			<div class="unit">
				<label>区间最小值：</label>
				<input name="min_weight" type="text" size="30" value="{$transportprice.min_weight}" class="number required" errormsg="请输入区间最大值"/>
			</div>
			<div class="unit">
				<label>区间最大值：</label>
				<input name="max_weight" type="text" size="30" value="{$transportprice.max_weight}" class="number required" errormsg="请输入区间最小值"/>
			</div>
			<div class="unit">
				<label>区间价格：</label>
				<input name="transport_price" type="text" size="30" value="{$transportprice.transport_price}" class="number required" errormsg="请输入区间价格"/>
			</div>
		</div>
		
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>

	</form>

</div>
